<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>lodash测试</title>
    <script src="./lib/tinymce/tinymce.min.js"></script>
    <script>
      tinymce.init({
        selector: "#tinymce",
        language: "zh-Hans",
        plugins: `advlist autoresize code emoticons image link nonbreaking quickbars table visualchars anchor autosave codesample fullscreen importcss lists pagebreak save template wordcount autolink charmap directionality help insertdatetime media preview searchreplace visualblocks`,
        skin: "tinymce-5",
        content_css: "tinymce-5-dark",
        toolbar:
          "undo redo | styles bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent",
      });
    </script>
  </head>

  <body>
    <h2>lodash测试</h2>
    <textarea id="tinymce">
      <pre>
        _.forEach({ a: 1, b: 2, c: 3 }, (item, index) => {
          console.log(item, "item");
          console.log(index, "index");
        });
      </pre>
      </textarea
    >
    <script src="./lib/lodash.min.js"></script>
    <script>
      _.forEach({ a: 1, b: 2, c: 3 }, (item, index) => {
        console.log(item, "item");
        console.log(index, "index");
      });
    </script>
  </body>
</html>
